import { Body, Controller, Post } from '@nestjs/common';
import { ApiOperation } from '@nestjs/swagger';

@Controller()
export class AdminController {
  constructor() {}

  @Post('/auth/login')
  @ApiOperation({
    summary: '认证登录',
    description: '使用账号密码登录, 密码须使用bcrypto处理',
    tags: ['auth'],
  })
  login(@Body() data: { username: string; password: string }) {
    return data;
  }
}
